package com.bl.weilan.dao.repository;

import com.bl.weilan.dao.model.TradeInstitutionEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TradeInstitutionRepository extends JpaRepository<TradeInstitutionEntity, String> {
    Page<TradeInstitutionEntity> findByTradeId(String tradeId, Pageable pageable);

    List<TradeInstitutionEntity> findByTradeId(String tradeId);

    TradeInstitutionEntity findByTradeIdAndInstitutionId(String tradeId, String institutionId);
}
